Update CodeMirror#11274
Merged
renovate[bot] merged 1 commit intomainfrom Apr 16, 2026
Merged
Conversation
Contributor
Code Coverage Report: Only Changed Files listed
Minimum allowed coverage is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.10.1→6.10.36.11.3→6.12.36.5.2→6.6.06.39.4→6.41.0Release Notes
codemirror/commands (@codemirror/commands)
v6.10.3Compare Source
Bug fixes
Make sure selection-extending commands preserve the associativity of the selection head.
v6.10.2Compare Source
Bug fixes
Move the selection to a less surprising place when undoing, moving the selection, redoing, then undoing again.
codemirror/language (@codemirror/language)
v6.12.3Compare Source
Bug fixes
Fix a crash in
bracketMatchingwhen composing at end of document.v6.12.2Compare Source
Bug fixes
Make sure brackets are highlighted in the initial editor state.
Pause bracket matching updates during composition, to avoid disrupting Mobile Safari's fragile composition handling.
v6.12.1Compare Source
Bug fixes
Improve finding inner language in syntax tree when the nested parse has been marked as bracketed.
v6.12.0Compare Source
codemirror/state (@codemirror/state)
v6.6.0Compare Source
New features
EditorSelection.rangenow takes an optionalassocargument.SelectionRange.extendcan now be given a third argument to specify associativity.v6.5.4Compare Source
Bug fixes
Make
SelectionRange.eqreturn false when the ranges have different goal columns.v6.5.3Compare Source
Bug fixes
Fix an issue where
RangeValue.eqcould get called with a value of a different class.EditorState.charCategorizernow only uses the highest-precedence set of word characters from the language data, to allow overriding these.codemirror/view (@codemirror/view)
v6.41.0Compare Source
Bug fixes
Fix an issue where
EditorView.posAtCoordscould incorrectly return a position near a higher element on the line, in mixed-font-size lines.Expand the workaround for the Webkit bug that causes nonexistent selections to stay visible to be active on non-Safari Webkit browsers.
New features
The new
EditorView.cursorScrollMarginfacet can now be used to configure the extra space used when scrolling the cursor into view.v6.40.0Compare Source
Bug fixes
Fix a bug that caused Shift-Enter/Backspace/Delete on iOS to lose the shift modifier when delivered to key event handlers.
Fix an issue where
EditorView.moveVerticallycould move to the wrong place in wrapped lines with a large line height.Make sure the selection head associativity is properly set for mouse selections made with shift held down.
New features
WidgetType.updateDOMis now called with the previous widget value as third argument.v6.39.17Compare Source
Bug fixes
Improve touch tap-selection on line wrapping boundaries.
Make
drawSelectiondraw our own selection handles on iOS.Fix an issue where
posAtCoords, when querying line wrapping points, got confused by extra empty client rectangles produced by Safari.v6.39.16Compare Source
Bug fixes
Perform scroll stabilization on the document or wrapping scrollable elements, when the user scrolls the editor.
Fix an issue where changing decorations right before a composition could end up corrupting the visible DOM.
Fix an issue where some types of text input over a selection would be read as happening in wrong position.
v6.39.15Compare Source
Bug fixes
Fix a regression where the editor would forget previously measured line heights without good reason.
Fix an issue where scrolling the cursor into view sometimes wouldn't work on Chrome Android.
Fix a bug that broke composition inside of block wrappers.
v6.39.14Compare Source
Bug fixes
Improve performance of
posAtCoordson long lines.Fix a regression where copy and cut in a shadow DOM on Safari would fall back to the native behavior, often copying the wrong text.
v6.39.13Compare Source
Bug fixes
Fix an issue where a widget at start or end of line, when wrapped to cover that whole line, could block vertical cursor motion.
Fix an issue
EditorView.moveVerticallythat would sometimes cause selection-extending vertical motion to get stuck on line wrapping points.v6.39.12Compare Source
Bug fixes
Fix a bug where the visual selection drawn by
drawSelectioncould fail to update properly in some circumstances.Fix a bug where PageUp/PageDown near the edge of the viewport might completely skip to the start/end of the document.
Fix a regression that caused mark decorations to be split on text node chunk boundaries again.
v6.39.11Compare Source
Bug fixes
Avoid handling copy events for parent editors.
v6.39.10Compare Source
Bug fixes
Fix a regression in the way widget are reused when content next to them changes.
Make sure font metrics get recomputed on
fonts.readyeven if the line height doesn't change.Fix an issue where compositions next to a widget that create a new text node could get needlessly interrupted during an editor update.
v6.39.9Compare Source
Bug fixes
Fix a bug where
EditorSelection.cursor()with a non-zeroassocvalue would not be visually respected at soft-wrap boundaries on initial view creation.Fix error caused by hover tooltips running a scheduled timeout after their editor has been destroyed.
Fix a bug that caused
EditorView.outerDecorationsto not affect the content height map.Fix an issue where composition near a widget could get unnecessarily interrupted.
v6.39.8Compare Source
Bug fixes
Fix a bug that cause
coordsAtPosto use the dimensions of widget buffers when there were more meaningful elements to use nearby.Fix a data structure corruption that could cause crashes during viewport changes.
v6.39.7Compare Source
Bug fixes
Fix a bug that could sometimes cause the document to become mangled during composition.
v6.39.6Compare Source
Bug fixes
Fix an issue when composing on the boundary of a decoration, where the text after the composition would get garbled.
v6.39.5Compare Source
Bug fixes
Fix an issue where replaced widgets alone on a line weren't reused and didn't get their
updateDOMmethod called.Fix a bug where, when selecting full lines at the end of the document and inserting a character on Chrome, an inappropriate extra newline was inserted.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.